package com.atguigu.gmall.product.task;

import com.atguigu.gmall.product.service.RestBloomFilter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class RestBloomFilterTask {

    @Autowired
    private RestBloomFilter restBloomFilter ;

    /**
     * *: 任意一个数字
     * ,: 枚举
     * -: 范围
     * /: 间隔
     */
    @Scheduled(cron = "0/10 * * * * ?")     // 0-5 * * * * ?
    public void restBloomFilterTask() {
        // restBloomFilter.resetBloomFilter() ;
        log.info("RestBloomFilterTask....restBloomFilter....");
    }

}
